<%@ page language="java" contentType="text/html; charset=UTF-8"  
    pageEncoding="UTF-8"%>  
<%@ taglib prefix="s" uri="/struts-tags"%>  
<%
  String path = request.getContextPath();
  String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;
%>

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>戴瑞珠宝ERP</title>
    <link rel="stylesheet" type="text/css" href="<%=basePath%>/style/themes/bootstrap/easyui.css" />
    <link rel="stylesheet" type="text/css" href="<%=basePath%>/style/icon.css" />
    <link rel=" stylesheet" type="text/css" href="<%=basePath%>/style/index.css" />
    <link rel=" stylesheet" type="text/css" href="<%=basePath%>/style/global.css" />
    <link href="<%=basePath%>/Plugins/formValidator/css/validationEngine.jquery.css" rel="stylesheet" />
    <script type="text/javascript" src="<%=basePath%>/Scripts/jquery-1.10.2.min.js"></script>
    <script src="<%=basePath%>/Scripts/jquery-form.js"></script>
    <script type="text/javascript" src="<%=basePath%>/Scripts/jquery.unobtrusive-ajax.min.js"></script>
</head>
<body style="overflow:auto;min-width:1200px;">
    <div class="easyui-layout">
        <div data-options="region:'north'" id="header" style="overflow:hidden;">
            <table width="100%">
                <tr>
                    <td>
                        <div class="nav fn-clear">
                           <% %>
                        </div>
                    </td>
                    <td width="30%" style="padding-right:1em">
                        <table style="float:right">
                            <tr>
                                <td>
                                    <a href="javascript:setlanguage()">简 繁</a> &nbsp; &nbsp; &nbsp;
                                </td>
                                <td>
                                    <span>欢迎！@Session["RoleInfo"]</span>
                                </td>
                                <td>
                                    &nbsp; &nbsp;<a href="/System/User/LoginOut" style="color:royalblue">退出</a>
                                    &nbsp; &nbsp; &nbsp; &nbsp;

                                </td>
                            </tr>
                        </table>


                    </td>
                </tr>
            </table>

        </div>
        <div data-options="region:'west',split:true,onCollapse:function(){$.parser.parse()},onExpand:function(){$.parser.parse()}" title=" " style="width:200px;">
            <div class="easyui-accordion" id="home-accordion" data-options="multiple:true">
                @Html.Action("LoadChildMenuByParent", "Menu")
            </div>
        </div>
        <div data-options="region:'center',minWidth:1050" style="overflow:auto;" id="iframe">
            <form class="wb100" id="form0">
                <div class="easyui-tabs" id="tabs" style="width:98%;">
                    <div title="起始页" data-options="closable:true">
                        <div>
                            <div style="text-align: center">
                               
                                <table style="width: 98%">
                                    <tr>
                                        <td colspan="2" style="width: 100%">
                                            @*@Html.Action("OrderCountIndexKLine", "MainIndexReport", new { area = "Report" })*@
                                        </td>
                                        
                                    </tr>
                                   
                                </table>


                            </div>

                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>
   
    <script type="text/javascript" src="<%=basePath%>/Scripts/jquery.easyui.min.js"></script>
    <script src="<%=basePath%>/Plugins/formValidator/jquery.validationEngine.js"></script>
    <script src="<%=basePath%>/Plugins/formValidator/jquery.validationEngine-cn.js"></script>
    <script src="<%=basePath%>/Scripts/jquery.edatagrid.js"></script>
    <script src="<%=basePath%>/Scripts/easyui-lang-zh_CN.js"></script>
    <script src="<%=basePath%>/Plugins/jgxLoader.js"></script>
    <script src="<%=basePath%>/Plugins/LanguageTransfer.js"></script>
    <script src="<%=basePath%>/Plugins/echarts/build/dist/echarts.js"></script>
    <script src="<%=basePath%>/Scripts/erpcommon.js"></script>
    <script src="<%=basePath%>/Scripts/globalExtend.js"></script>
    <script>

        $(function () {
            //$("#form0").validationEngine();
            //控制左侧菜单样式
            $('#home-accordion .tree-node').click(function () {
                $('#home-accordion .tree-node').removeClass('tree-node-selected');
                $(this).addClass('tree-node-selected');
            });
        });
        //$(window).resize(function () {
        //    $.parser.parse();
        //});
        function openUrl(url, title) {
            if ($("#tabs").tabs("exists", title)) {
                if (title == "领料出库") {
                    $("#tabs").tabs("select", title);
                    var tab = $('#tabs').tabs('getSelected');
                    $("#tabs").tabs('update', {
                        tab: tab,
                        options: {
                            content: turnPage(url),
                        }
                    });
                    //tab.panel('refresh');
                }
                else {
                    $("#tabs").tabs("select", title);
                }
            } else {
                //begainLoad();
                var tabCount = $("#tabs").tabs('tabs').length;
                if (tabCount <= 4) {
                    $('#tabs').tabs('add', {
                        title: title,
                        content: turnPage(url),
                        closable: true
                    });
                } else {
                    $.messager.confirm("系统提示", '您当前打开了太多的页面，如果继续打开，会造成程序运行缓慢，无法流畅操作！');
                }

                // endLoad();
            }
            $("#tabs").tabs("close", '起始页');
        }
        function turnPage(url) {
            var data_html = '';
            $.ajax({
                type: "post",
                url: url,
                async: false,
                success: function (html) {
                    data_html = html;
                }
            });
            return data_html;
        }
        //查看订单详情
        function redirectShipUrl(stroderid) {
            openUrl("/Order/Order/Detail/" + stroderid, stroderid);
        }

    </script>
    

</body>
</html>
